package demo002;

public class WeekTest {
    public static void main(String[] args) {
        //枚举第一次调用时，内部就会全部初始化
        Week friday = Week.FRIDAY;
        friday.show();
        System.out.println(friday);
        System.out.println("---------------");

        Week saturday = Week.SATURDAY;
        saturday.show();
        System.out.println(saturday);
        System.out.println("---------------");

        Week tuesday = Week.TUESDAY;
        tuesday.show();
        System.out.println(tuesday);
        System.out.println("---------------");

        Week wednesday = Week.WEDNESDAY;
        wednesday.show();
        System.out.println(wednesday);
        System.out.println("---------------");
    }
}
